package comman.duke.display 
{
	/**
	 * ...
	 * @author jerry.d
	 */
	public class ClipData 
	{
		public var frameRate:int = 24;
		public var frames:Vector.<FrameUnitData>;
		private var _totalFrames:uint = 0;
		public function ClipData() 
		{
			this.frames = new Vector.<FrameUnitData>();
		}
		
		public function parseFrames(obj:Array):void{
			var len:uint = obj.length;
			var data:*;
			for (var i:int = 0; i < len; i++){
				data = obj[i];
				this.frames.push(new FrameUnitData(data.res, data.x, data.y, data.duration));
			}
			this._totalFrames = this.frames.length;
		}
		
		public function get totalFrames():uint{
			return this._totalFrames;
		}
		
	}

}